using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ResetPawInfo : GeneratedMessageLite<ResetPawInfo, ResetPawInfo.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ResetPawInfo, ResetPawInfo.Builder>
		{
			private bool resultIsReadOnly;
			private ResetPawInfo result;
			protected override ResetPawInfo.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ResetPawInfo MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ResetPawInfo DefaultInstanceForType
			{
				get
				{
					return ResetPawInfo.DefaultInstance;
				}
			}
			public uint CreateTime
			{
				get
				{
					return this.result.CreateTime;
				}
				set
				{
					this.SetCreateTime(value);
				}
			}
			public uint IsReset
			{
				get
				{
					return this.result.IsReset;
				}
				set
				{
					this.SetIsReset(value);
				}
			}
			public uint ID
			{
				get
				{
					return this.result.ID;
				}
				set
				{
					this.SetID(value);
				}
			}
			public Builder()
			{
				this.result = ResetPawInfo.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ResetPawInfo cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ResetPawInfo PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ResetPawInfo other = this.result;
					this.result = new ResetPawInfo();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ResetPawInfo.Builder Clear()
			{
				this.result = ResetPawInfo.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ResetPawInfo.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ResetPawInfo.Builder(this.result);
				}
				return new ResetPawInfo.Builder().MergeFrom(this.result);
			}
			public override ResetPawInfo BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ResetPawInfo.Builder MergeFrom(IMessageLite other)
			{
				if (other is ResetPawInfo)
				{
					return this.MergeFrom((ResetPawInfo)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ResetPawInfo.Builder MergeFrom(ResetPawInfo other)
			{
				return this;
			}
			public override ResetPawInfo.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ResetPawInfo.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ResetPawInfo._resetPawInfoFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ResetPawInfo._resetPawInfoFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 8u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasIsReset = input.ReadUInt32(ref this.result.isReset_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasID = input.ReadUInt32(ref this.result.iD_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ResetPawInfo.Builder SetCreateTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = true;
				this.result.createTime_ = value;
				return this;
			}
			public ResetPawInfo.Builder ClearCreateTime()
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = false;
				this.result.createTime_ = 0u;
				return this;
			}
			public ResetPawInfo.Builder SetIsReset(uint value)
			{
				this.PrepareBuilder();
				this.result.hasIsReset = true;
				this.result.isReset_ = value;
				return this;
			}
			public ResetPawInfo.Builder ClearIsReset()
			{
				this.PrepareBuilder();
				this.result.hasIsReset = false;
				this.result.isReset_ = 0u;
				return this;
			}
			public ResetPawInfo.Builder SetID(uint value)
			{
				this.PrepareBuilder();
				this.result.hasID = true;
				this.result.iD_ = value;
				return this;
			}
			public ResetPawInfo.Builder ClearID()
			{
				this.PrepareBuilder();
				this.result.hasID = false;
				this.result.iD_ = 0u;
				return this;
			}
		}
		public const int CreateTimeFieldNumber = 1;
		public const int IsResetFieldNumber = 2;
		public const int IDFieldNumber = 3;
		private static readonly ResetPawInfo defaultInstance;
		private static readonly string[] _resetPawInfoFieldNames;
		private static readonly uint[] _resetPawInfoFieldTags;
		private bool hasCreateTime;
		private uint createTime_;
		private bool hasIsReset;
		private uint isReset_;
		private bool hasID;
		private uint iD_;
		private int memoizedSerializedSize = -1;
		public static ResetPawInfo DefaultInstance
		{
			get
			{
				return ResetPawInfo.defaultInstance;
			}
		}
		public override ResetPawInfo DefaultInstanceForType
		{
			get
			{
				return ResetPawInfo.DefaultInstance;
			}
		}
		protected override ResetPawInfo ThisMessage
		{
			get
			{
				return this;
			}
		}
		public uint CreateTime
		{
			get
			{
				return this.createTime_;
			}
		}
		public uint IsReset
		{
			get
			{
				return this.isReset_;
			}
		}
		public uint ID
		{
			get
			{
				return this.iD_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasCreateTime && this.hasIsReset && this.hasID;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasCreateTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(1, this.CreateTime);
				}
				if (this.hasIsReset)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.IsReset);
				}
				if (this.hasID)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.ID);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ResetPawInfo()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] resetPawInfoFieldNames = ResetPawInfo._resetPawInfoFieldNames;
			if (this.hasCreateTime)
			{
				output.WriteUInt32(1, resetPawInfoFieldNames[0], this.CreateTime);
			}
			if (this.hasIsReset)
			{
				output.WriteUInt32(2, resetPawInfoFieldNames[2], this.IsReset);
			}
			if (this.hasID)
			{
				output.WriteUInt32(3, resetPawInfoFieldNames[1], this.ID);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasCreateTime)
			{
				num ^= this.createTime_.GetHashCode();
			}
			if (this.hasIsReset)
			{
				num ^= this.isReset_.GetHashCode();
			}
			if (this.hasID)
			{
				num ^= this.iD_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ResetPawInfo resetPawInfo = value as ResetPawInfo;
			return resetPawInfo != null && (this.hasCreateTime == resetPawInfo.hasCreateTime && (!this.hasCreateTime || this.createTime_.Equals(resetPawInfo.createTime_))) && (this.hasIsReset == resetPawInfo.hasIsReset && (!this.hasIsReset || this.isReset_.Equals(resetPawInfo.isReset_))) && (this.hasID == resetPawInfo.hasID && (!this.hasID || this.iD_.Equals(resetPawInfo.iD_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ResetPawInfo, ResetPawInfo.Builder>.PrintField("CreateTime", this.hasCreateTime, this.createTime_, writer);
			GeneratedMessageLite<ResetPawInfo, ResetPawInfo.Builder>.PrintField("IsReset", this.hasIsReset, this.isReset_, writer);
			GeneratedMessageLite<ResetPawInfo, ResetPawInfo.Builder>.PrintField("ID", this.hasID, this.iD_, writer);
		}
		public static ResetPawInfo ParseFrom(byte[] data)
		{
			return ResetPawInfo.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ResetPawInfo MakeReadOnly()
		{
			return this;
		}
		public static ResetPawInfo.Builder CreateBuilder()
		{
			return new ResetPawInfo.Builder();
		}
		public override ResetPawInfo.Builder ToBuilder()
		{
			return ResetPawInfo.CreateBuilder(this);
		}
		public override ResetPawInfo.Builder CreateBuilderForType()
		{
			return new ResetPawInfo.Builder();
		}
		public static ResetPawInfo.Builder CreateBuilder(ResetPawInfo prototype)
		{
			return new ResetPawInfo.Builder(prototype);
		}
		static ResetPawInfo()
		{
			ResetPawInfo.defaultInstance = new ResetPawInfo().MakeReadOnly();
			ResetPawInfo._resetPawInfoFieldNames = new string[]
			{
				"CreateTime",
				"ID",
				"IsReset"
			};
			ResetPawInfo._resetPawInfoFieldTags = new uint[]
			{
				8u,
				24u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.ResetPawInfo.Descriptor, null);
		}
	}
}
